// 清除浮动
.clear-fix {
	zoom: 1;

	&:after {
		content: '';
		height: 0;
		line-height: 0;
		display: block;
		clear: both;
		visibility: hidden;
	}
}

// 宽高
.size(@w, @h) {
	width: @w;
	height: @h;
}

// radius
.radius(@r) {
	border-radius: @r;
}

// box-sizing
.sizing {
	box-sizing: border-box;
}

// margin
.margin(@direction, @size) {
	margin-@{direction}: @size
}

// position
.position(@direction, @size) {
	@{direction}: @size
}

// border
.border-local(@direction, @color) {
	border-@{direction}: 1px solid @color
}

// 按钮loading动画
@keyframes rotate {
	from {
		transform: rotate(0deg)
	}

	to {
		transform: rotate(359deg)
	}
}

// 操作按钮
/deep/ .handle-box {
	display: flex;
	align-items: center;
	justify-content: space-around;

	.refresh .ivu-icon {
		animation: rotate 3s linear infinite;
	}
}
